package com.vcvt.verify.controller;

import com.vcvt.verify.model.SysMenu;
import com.vcvt.verify.service.SysMenuService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Description:
 *
 * @author by xionghaohua
 * @date 2020/9/16
 */
@RestController
@RequestMapping("sysmenu")
@Slf4j
public class SysMenuController {

    @Autowired
    private SysMenuService sysMenuService;

    @GetMapping("{id}")
    public SysMenu selectByPid(@PathVariable long id) {
        SysMenu sysMenu = sysMenuService.selectByPid(id);
        return sysMenu;
    }
}
